package com.ce.pms.system.custservice.dao.impl;

import java.util.List;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.system.custservice.dao.IReturnVisitRuleDao;
import com.ce.pms.system.custservice.model.ReturnVisitRuleDO;

/**
 * 描述：“回访规则”DAO实现
 * @author 王浩羽
 *
 */
public class ReturnVisitRuleDaoImpl extends PmsBaseDaoImpl<ReturnVisitRuleDO> implements
		IReturnVisitRuleDao {

	public List<ReturnVisitRuleDO> queryAllValidReturnVisitRule()
	{
		String hql = "SELECT obj FROM ReturnVisitRuleDO obj WHERE obj.validity = ? ";
		return this.findAllResult(hql,ReturnVisitRuleDO.RETURN_VISIT_RULE_STATUZ_AVAILABILITY);
	}
}
